home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Chat & Communication
/
Digsby build 37
/
digsby_setup.exe
/
lib
/
wx
/
py
/
PyCrust.pyo
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2008-10-13
|
2KB
|
61 lines
# Source Generated with Decompyle++
# File: in.pyo (Python 2.5)
import __main__
original = __main__.__dict__.keys()
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = '$Id: PyCrust.py 36607 2005-12-30 23:02:03Z RD $'
__revision__ = '$Revision: 36607 $'[11:-2]
import wx
class App(wx.App):
def OnInit(self):
import os as os
import wx as wx
py = py
import wx
self.SetAppName('pycrust')
confDir = wx.StandardPaths.Get().GetUserDataDir()
if not os.path.exists(confDir):
os.mkdir(confDir)
fileName = os.path.join(confDir, 'config')
self.config = wx.FileConfig(localFilename = fileName)
self.config.SetRecordDefaults(True)
self.frame = py.crust.CrustFrame(config = self.config, dataDir = confDir)
self.frame.Show()
self.SetTopWindow(self.frame)
return True
def main():
import __main__
md = __main__.__dict__
keepers = original
keepers.append('App')
for key in md.keys():
if key not in keepers:
del md[key]
continue
app = App(0)
import sys as sys
if sys.path[0]:
sys.path[0] = ''
sys.app = app
del sys
if md.has_key('App') and md['App'] is App:
del md['App']
if md.has_key('__main__') and md['__main__'] is __main__:
del md['__main__']
app.MainLoop()
if __name__ == '__main__':
main()